package com.yhy.common.feign.config;

import feign.Logger;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

@ComponentScan("com.yhy.common.feign")
public class FeignConfig {

    @Bean
    @LoadBalanced //ribbon
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }

    @Bean
    public Logger.Level level() {
        return Logger.Level.FULL;
    }

}


